/**
 * Copyright (C), 2015-2020, bogewang
 * FileName: DemoProviderService
 * Author:   foren236598164@aliyun.com
 * Date:     2020/5/14 10:51
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.bogewang.provider;

import com.bogewang.api.DemoService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Value;

/**
 * 〈一句话功能简述〉
 * 〈〉
 *
 * @author foren236598164@aliyun.com
 * @create 2020/5/14
 * @since 1.0.0
 */
@Service(version = "1.0.0")
public class DemoProviderService implements DemoService {
    @Value("${dubbo.application.name}")
    private String serviceName;

    @Override
    public String sayHello(String name) {
        return String.format("[%s] : Hello, %s", serviceName, name);
    }
}
